<!--
 * @Author: 李明明
 * @Date: 2021-03-11 13:58:27
 * @LastEditTime: 2022-05-03 12:10:03
 * @LastEditors: 学渣小明
 * @Description: 
 * @FilePath: /官网改版/web/html/fragment/today-bid.htm
 * 代码版权方：'政府采购信息网'
-->
<div id="fragment-today-bid" data-num="2" data-keyword="电梯">
  <div class="title">
    <h2 class="title_h2">
      <i class="title-line"></i>
      <a class="title_link" href="###">今日标讯</a>
    </h2>
    <a href="https://yzb.caigou2003.com/index.html#/frontHome/searchResult?searchPageType=1&inputSearch=电梯&method=1"
      target="_blank">更多 ></a>
  </div>
  <ul class="bid-list">
  </ul>
</div>
<script>
  $(function () {
    $.ajax({
      url: ports.queryBidTitle,
      data: {
        "pageNum": 0,
        "pageSize": $('#fragment-today-bid').data('num'),
        "queryText": $('#fragment-today-bid').data('keyword'),
      },
      success: function (res) {
        console.log('查询今日标讯列表', res);
        var html = '';
        res.data.content.forEach(function (item) {
          html += '<li><i class="circle"></i><a href=' + 'https://yzb.caigou2003.com/index.html#/frontHome/bidDetail?id=' + item.id + ' target="_blank"><span>' + item.title + '</span></a><p class="date">' + item.projectDate.substr(5, 5) + '</p></li>'
        });
        $('#fragment-today-bid .bid-list').html(html);
      }
    })
  })
</script>